#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "mypushbutton.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    mypushbutton * pushbutton = new  mypushbutton(ui->centralwidget);
    pushbutton->setGeometry(QRect(200,255,80,30));
    pushbutton->setText("登录");
    pushbutton->setShortcut(QKeySequence("E"));

    mypushbutton * pushbutton1 = new  mypushbutton(ui->centralwidget);
    pushbutton1->setGeometry(QRect(400,255,80,30));
    pushbutton1->setText("退出");
    pushbutton1->setShortcut(QKeySequence("N"));

}

MainWindow::~MainWindow()
{
    delete ui;
}

